CXX = g++
CXXFLAGS = -std=c++0x -Wall -MMD -O2

TEST_BIN = ad_test
TEST_OBJ = ad_test.o

DEMO_BIN = ad_demo
DEMO_OBJ = ad_demo.o

all: $(TEST_BIN) $(DEMO_BIN)

$(TEST_BIN): $(TEST_OBJ)
	$(CXX) -o $@ $(TEST_OBJ) $(LDFLAGS)

$(DEMO_BIN): $(DEMO_OBJ)
	$(CXX) -o $@ $(DEMO_OBJ) $(LDFLAGS)

clean:
	$(RM) $(DEMO_BIN) $(DEMO_OBJ) $(TEST_BIN) $(TEST_OBJ) *.d

.PHONY: all clean

-include *.d

